.686p
.model flat,stdcall
option casemap:none

   include windows.inc
   include user32.inc
   include kernel32.inc
   include comctl32.inc
   
   includelib user32.lib
   includelib kernel32.lib
   includelib comctl32.lib

WinMain proto :DWORD,:DWORD,:DWORD,:DWORD
CreateAppIcon proto :HWND
CreateAppStyle proto :HWND
RegisterGlobalHotkey proto :HWND
UnRegisterGlobalHotkey proto :HWND
.data
    ClassName 	db "gpf2025",0
    AppName  	db "shaiyaTools",0

	szWndClsTab     db "SysTabControl32",0
	
	hTab        dd 0
	tabCount        dd 0
	tabIdHang      dd 0
	tabIdMove       dd 0
	szTabTitle1     db "Tab One",0
	tie             TC_ITEM <> 
    icex            INITCOMMONCONTROLSEX <>
.data?
    hInstance HINSTANCE ?
    CommandLine LPSTR ?
     
    
.const
	APP_ICON equ 1000
	APP_WIDTH equ 400
	APP_HEIGHT equ 247
	GLOBAL_HOTKEY_SHOW equ 2000
	GLOBAL_HOTKEY_SHOW_VALUE equ 53h
	GLOBAL_HOTKEY_HIDE equ 2001
	GLOBAL_HOTKEY_HIDE_VALUE equ 48h
	TABID equ 3000
.code
start:
	invoke GetModuleHandle, NULL
	mov    hInstance,eax
	invoke GetCommandLine
	mov    CommandLine,eax
	mov icex.dwSize,sizeof INITCOMMONCONTROLSEX
    mov icex.dwICC,ICC_TAB_CLASSES
    invoke InitCommonControlsEx,ADDR icex
	invoke WinMain, hInstance,NULL,CommandLine, SW_SHOWDEFAULT
	invoke ExitProcess,eax